<template>
  <div class="home-container">
    <header class="header-box">
      <h1>相册</h1>
      <small>存放一些照片</small>
    </header>
    <div class="content-box">
      <a-row :gutter="[16, 16]">
        <a-col :span="8">
          <figure class="album-box">
            <img
              src="https://cdn.jsdelivr.net/gh/ihewro/blog@master/usr/uploads/2018/07/3084946582.png"
              class="album-cover"
            />
            <figcaption class="album-title">没想好标题</figcaption>
          </figure>
        </a-col>
        <a-col :span="8">
          <figure class="album-box">
            <img
              src="http://p4.music.126.net/U45KVAsXOAQnvTzmUbT3Jg==/109951165515144516.jpg?param=300y300"
              class="album-cover"
            />
            <figcaption class="album-title">没想好标题</figcaption>
          </figure>
        </a-col>
        <a-col :span="8">
          <figure class="album-box">
            <img
              src="http://p4.music.126.net/0dBLNVvLWu29wrXtwFZMtg==/109951165643193700.jpg?param=300y300"
              class="album-cover"
            />
            <figcaption class="album-title">没想好标题</figcaption>
          </figure>
        </a-col>
      </a-row>

       <a-row :gutter="[16, 16]">
        <a-col :span="8">
          <figure class="album-box">
            <img
              src="http://p3.music.126.net/-RdidB9FiFHALkVF_6bwnw==/109951165605306369.jpg?param=300y300"
              class="album-cover"
            />
            <figcaption class="album-title">没想好标题</figcaption>
          </figure>
        </a-col>
        <a-col :span="8">
          <figure class="album-box">
            <img
              src="http://p4.music.126.net/IHiwfRh2uKq1Ehy7My78gA==/109951165869013038.jpg?param=300y300"
              class="album-cover"
            />
            <figcaption class="album-title">没想好标题</figcaption>
          </figure>
        </a-col>
        <a-col :span="8">
          <figure class="album-box">
            <img
              src="https://cdn.jsdelivr.net/gh/ihewro/blog@master/usr/uploads/2018/07/3084946582.png"
              class="album-cover"
            />
            <figcaption class="album-title">没想好标题</figcaption>
          </figure>
        </a-col>
      </a-row>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      loading: false
    }
  }
}
</script>
<style lang="scss" scoped>
.home-container {
  background-color: #f1f3f4;
  .header-box {
    background-color: #f9f9f9;
    padding: 20px;
    h1 {
      font-size: 30px;
      color: #000;
      margin-bottom: 0;
    }
    small {
      letter-spacing: 2px;
      color: #a0a0a0;
      font-size: 13px;
    }
  }
  .content-box {
    padding: 20px;
    min-height: 100vh;
    .album-box{
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      justify-content: center;
      text-align: center;
      list-style: none;
      height: 132px;
      position: relative;
      cursor: pointer;
      align-items: flex-end;
      border-radius: 6px;
      z-index: 1;
      margin:0;
      .album-cover{
        height: 100px;
        width: 100%;
        object-fit: cover;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
      }
      .album-title{
        width: 100%;
        line-height: 32px;
        max-height: 32px;
        overflow: hidden;
        font-size: 14px;
        word-wrap: break-word;
        background: #fff;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
      }
      &:before{
        transform: skew(-15deg) rotate(-5deg);
        left: 15px;
        width: 88%;
        height: 20%;
        content: ' ';
        box-shadow: 0 8px 16px rgb(0 0 0 / 30%);
        position: absolute;
        bottom: 9px;
        z-index: -1;
      }
      &:after{
        transform: skew(15deg) rotate(5deg);
        right: 15px;
        width: 88%;
        height: 20%;
        content: ' ';
        box-shadow: 0 8px 16px rgb(0 0 0 / 30%);
        position: absolute;
        bottom: 9px;
        z-index: -1;
      }
    }
  }
}
</style>
